package com.chucang.shucang.ttp.feign;

import com.chucang.shucang.common.base.constant.SecurityConstant;
import com.chucang.shucang.common.base.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/4 18:22
 * @description
 */
@FeignClient(contextId = "ttp-pms", value = "shucang-pms")
public interface PmsService {
    @GetMapping("/pms/collectionsynthetic/updateCollectionSyntheticSurplus/{id}")
    R<String> updateCollectionSyntheticSurplus(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);
}
